from utils.binary_manager import BinaryManager

# # 打包地图资源 
# 打包资源
BinaryManager.pack_resources(
    resource_dir='data/map',
    output_path='data/map.bin'
)


# # 读取单个资源
# content = BinaryManager.read_resource(
#     bin_path='data/map.bin',
#     resource_path='黑风寨/map.png'
# )

# print(content)

# # 解压所有资源
# BinaryManager.extract_all(
#     bin_path='data/resources.bin',
#     output_dir='data/extracted'
# )